/**
 *如何理解闭包
 *
 ***/
var outter = [];
function clouseTest() {
	var array = ["one", "two", "three", "four"];
	for (var i = 0; i < array.length; i++) {
		var x = {};
		x.no = i;
		x.text = array[i];
		x.invoke = function() {
			alert(i);
		}
		outter.push(x);
	}
};
clouseTest();
//alert(outter[0].invoke());
//alert(outter[1].invoke());
//alert(outter[2].invoke());  
alert(outter[3].invoke()); 